<template>
    <div class="notice-box">
        <div class="left-box">
            <div class="title">您有一条新的订单动态</div>
            <div class="detail">干垃圾车预计5分钟后到达</div>
        </div>
        <div class="right-box">
            <div class="more-btn" @click="goToNotice">更多</div>
        </div>
    </div>
</template>

<script setup>
import { useRouter } from "vue-router";
const router = useRouter()
function goToNotice() {
    router.push({
        path: '/notice'
    })
}
</script>

<style lang="scss" scoped>
.notice-box {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    margin-bottom: 5px;
    width: 702px;
    height: 114px;
    padding: 16px 40px 10px 48px;
    box-sizing: border-box;
    opacity: 1;
    border-radius: 20px;
    background: linear-gradient(360deg, rgba(255, 255, 255, 0.25) 0%, rgba(72, 198, 239, 0.25) 100%);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0px 1px 5px 2px rgba(179, 217, 255, 0.25);

    .left-box {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        .title {
            font-size: 23px;
            font-weight: bold;
            color: rgba(0, 0, 0, 1);
        }

        .detail {
            font-size: 24px;
            color: rgba(152, 162, 179, 1);
        }
    }

    .left-box::before {
        position: absolute;
        top: 12px;
        left: -14px;
        content: "";
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 64, 96, 1);

    }

    .right-box {
        display: flex;
        align-items: center;

        .more-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 96px;
            height: 48px;
            opacity: 1;
            border-radius: 50px;
            background: rgba(217, 241, 255, 1);
            font-size: 24px;
            color: rgba(0, 160, 252, 1);
            border: 1px solid rgba(0, 160, 252, 1);
        }
    }
}
</style>